'use strict';

function compute_chain_median(collection) {
  //在这里写入代码
  var result = collection.split("->");
  result.sort();
  var num = 0;
  // num = (parseInt(collection[collection.length/2])+parseInt(collection[collection.length/2+1]))/2;
  // num = parseInt(collection[2])
  var x = Number(collection[collection.length/2])
  var y = parseInt(collection[collection.length/2+1])
  return typeof x;

}

module.exports = compute_chain_median;
